﻿@using JPW.OnlinePaperSubmissionSystem.Authorization
<style>
    #mainGrid .k-grid-content, #mainGrid tr td {
        overflow: visible;
    }
</style>
<div ng-controller="tenant.views.instructions.index as vm">
    <div class="row margin-bottom-5">
        <div class="col-xs-6">
            <div class="page-head">
                <div class="page-title">
                    <h1>
                        <span>@L("Instructions")</span> <small>@L("Instructions")</small>
                    </h1>
                </div>
            </div>
        </div>
        <div class="col-xs-6 text-right">
            <button ng-if="vm.permissions.create" class="btn btn-primary blue" ng-click="vm.createInstructions()"><i class="fa fa-plus"></i> @L("CreateInstructions")</button>
            <button ng-if="vm.permissions.edit" class="btn btn-primary blue" ng-click="vm.editInstructions()"><i class="fa fa-pencil"></i> @L("UpdateInstructions")</button>
            <button ng-if="vm.permissions.delete" class="btn btn-primary blue" ng-click="vm.deleteInstructions()"><i class="fa fa-times"></i> @L("DeleteInstructions")</button>
        </div>
    </div>
    <div class="portlet light">
        @*<div class="portlet-title">
            <div class="inputs inputs-full-width">
                <div class="portlet-input">
                    <form>
                        <div class="input-group">
                            <input ng-model="vm.filterText" auto-focus class="form-control" placeholder="@L("SearchWithThreeDot")" type="text">
                            <span class="input-group-btn">
                                <button ng-click="vm.getInstructionss()" class="btn btn-default" type="submit"><i class="icon-magnifier"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>
        </div>*@
        <div class="portlet-body">
            <div busy-if="vm.loading">
                <div id="mainGrid" kendo-grid="vm.mainGrid" options="vm.mainGridOptions">
                    <div k-detail-template="">
                      
                            <div>
                                <div kendo-grid="" k-options="vm.detailGridOptions(dataItem)"></div>
                            </div>
                      
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

